package com.ruoyi.rycc.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.TreeEntity;

/**
 * 章节对象 cc_chapter
 * 
 * @author antg
 * @date 2021-09-06
 */
public class CcChapter extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 表id */
    private Long id;

    /** 章节名称 */
    @Excel(name = "章节名称")
    private String chapterName;

    /** 章节排序 */
    private Long chapterSort;

    /** 课程id */
    private Long courseId;

    /** 视频地址 */
    private String sectionVideoUrl;

    /** 是否允许试看(0:允许1:不允许) */
    private String sectionIfTry;

    /** 删除人 */
    private String delBy;

    /** 删除时间 */
    private Date delTime;

    /** 删除标志(0:未删除1:已删除) */
    private String delState;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setChapterName(String chapterName) 
    {
        this.chapterName = chapterName;
    }

    public String getChapterName() 
    {
        return chapterName;
    }
    public void setChapterSort(Long chapterSort) 
    {
        this.chapterSort = chapterSort;
    }

    public Long getChapterSort() 
    {
        return chapterSort;
    }
    public void setCourseId(Long courseId) 
    {
        this.courseId = courseId;
    }

    public Long getCourseId() 
    {
        return courseId;
    }
    public void setSectionVideoUrl(String sectionVideoUrl) 
    {
        this.sectionVideoUrl = sectionVideoUrl;
    }

    public String getSectionVideoUrl() 
    {
        return sectionVideoUrl;
    }
    public void setSectionIfTry(String sectionIfTry) 
    {
        this.sectionIfTry = sectionIfTry;
    }

    public String getSectionIfTry() 
    {
        return sectionIfTry;
    }
    public void setDelBy(String delBy) 
    {
        this.delBy = delBy;
    }

    public String getDelBy() 
    {
        return delBy;
    }
    public void setDelTime(Date delTime) 
    {
        this.delTime = delTime;
    }

    public Date getDelTime() 
    {
        return delTime;
    }
    public void setDelState(String delState) 
    {
        this.delState = delState;
    }

    public String getDelState() 
    {
        return delState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("chapterName", getChapterName())
            .append("chapterSort", getChapterSort())
            .append("parentId", getParentId())
            .append("courseId", getCourseId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("sectionVideoUrl", getSectionVideoUrl())
            .append("createTime", getCreateTime())
            .append("sectionIfTry", getSectionIfTry())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delBy", getDelBy())
            .append("delTime", getDelTime())
            .append("delState", getDelState())
            .toString();
    }
}
